<!--
 * @Author: lsp<286212824@qq.com>
 * @Date: 2020-07-16 14:57:13
 * @LastEditTime: 2020-07-16 15:38:20
 * @Description: file content
--> 
<template>
    <!--新增角色组弹窗-->
        <el-dialog  :visible.sync="dialogVisible" :show-close="false" width='753px' :class="['dialog','hiddenHeader']" :close-on-click-modal='!manager'>
            <div class="dialogtitle">
                <i class="el-icon-success" style="color:#52C41A;font-size:25px;margin-right:10px"></i> {{dialogTitle}}
            </div>
            <i class="el-icon-error" v-show="!manager" @click='dialogVisible=false'></i>
            <div class="contentBody">  
                <div>审批通过后找 <span style="color:#ff8d8d">{{manager}}仓库管理员</span> 领用{{type||'资产'}}</div>
                <div v-for="(item, index) in textList" :key="index">{{item}}</div>
            </div>
            <div style="text-align:right;margin-top:10px">
                <el-button style="margin-left:80px" type="primary" @click="submit">确 定</el-button>
                <el-button v-show="!manager" @click="dialogVisible=false">取 消</el-button>
            </div>
    </el-dialog>
</template>

<script>
 /* eslint-disable */ 
export default {
    name:"confirmDialog",
    data(){
        return {
            dialogVisible:false,
            dialogTitle:'',
            textList:[],
            this_id:'',
            manager:'',
            type:'',
        }
    },
    props:{
    }, 
    created(){
    },
    methods:{
        submit(){
            this.dialogVisible = false
            this.$emit('goConfirm',this.this_id,this.dialogTitle)
        }
    }
}
</script>

<style lang='stylus' >
.dialog
    .el-dialog
        min-width 753px
        position relative
        .dialogtitle
            line-height : 29px;
            color: rgba(16, 16, 16, 1);
            font-size: 20px;
            margin 0 0 16px 7px
            display flex
            align-items center
            font-family: SourceHanSansSC-regular;
        .el-button--medium
            padding 10px 22px
        .el-button+.el-button
            margin-left 20px
        .el-icon-error
            font-size 22px 
            color rgb(206,206,206)
            position absolute
            right 14px 
            top 14px
            cursor pointer
        .el-dialog__body
            padding 33px 60px 47px 60px
        .contentBody
            padding-left  40px
            >div 
                line-height : 20px;
                color: rgba(0, 0, 0, 0.65);
                font-size: 14px;
                margin-top 6px
.win-wid
    min-width 753px
.hiddenHeader
    .el-dialog
        .el-dialog__header
            display none

</style>